/* 简化版
const getters = {
  a: () => 1,
  b: () => 2,
}

function fn (keys = []) {
  const obj = {}

  keys.forEach(key => {
    if (getters.hasOwnProperty(key)) {
      obj[key] = getters[key]
    }
  })

  return obj
}
*/
const book = {
  fileName: state => state.book.fileName
}

export default book
